﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>KnifeBBS-选择表情</TITLE>
<META http-equiv=Expires content=0>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK 
href="1.files/pop.css" type=text/css rel=stylesheet>
<STYLE type=text/css>.Disactive {
	BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; WIDTH: 1%; CURSOR: hand; BORDER-BOTTOM: 1px solid; BACKGROUND-COLOR: #dedbd6; TEXT-ALIGN: center
}
.Active {
	CURSOR: hand; BACKGROUND-COLOR: #ffffcc; TEXT-ALIGN: center
}
.MainTable {
	BORDER-RIGHT: #e8e8e8 5px solid; BORDER-TOP: #e8e8e8 5px solid; BORDER-LEFT: #e8e8e8 5px solid; BORDER-BOTTOM: #e8e8e8 5px solid
}
.Sample {
	BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; FONT-SIZE: 24px; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid; BACKGROUND-COLOR: #dedbd6
}
.Empty {
	BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; WIDTH: 1%; CURSOR: default; BORDER-BOTTOM: 1px solid; BACKGROUND-COLOR: #dedbd6
}
</STYLE>

<SCRIPT language=javascript>
<!--
var oSample ;
var code;
var n
function insertsmilie(smilieface){
	if (self.opener.EditForm.content){
	self.opener.EditForm.content.value+=smilieface;
	}
}

function insertChar(td)
{
	window.returnValue = td.innerHTML+"*"+td.title || "" ;
	//window.close();
}

function over(td)
{
	oSample.innerHTML = td.innerHTML ;
	td.className = 'Active' ;
	code.innerHTML = td.title;
}
function out(td)
{
	oSample.innerHTML = "&nbsp;" ;
	td.className = 'Disactive' ;
	code.innerHTML = "";
}

function CloseWindow()
{
	window.returnValue = null ;
	window.close() ;
}

function pageopen(id){
	location.reload("smiley.htm?start="+id+"")
}
//-->
</SCRIPT>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY bottomMargin=0 bgColor=menu leftMargin=0 topMargin=0 rightMargin=0>
<TABLE height="100%" cellSpacing=10 cellPadding=0 width="100%">
  <TBODY>
  <TR>
    <TD width="90%" rowSpan=2><INPUT type=hidden value=1 name=SmileStar> 
      <TABLE class=MainTable height="100%" cellSpacing=1 cellPadding=2 
      width="100%" align=center border=1>
        <SCRIPT language=javascript>
<!--
var aImages='/images/emot/|||em01.gif|||em02.gif|||em03.gif|||em04.gif|||em05.gif|||em06.gif|||em07.gif|||em08.gif|||em09.gif|||em10.gif|||em11.gif|||em12.gif|||em13.gif|||em14.gif|||em15.gif|||em16.gif|||em17.gif|||em18.gif|||em19.gif|||em20.gif|||em21.gif|||em22.gif|||em23.gif|||em24.gif|||em25.gif|||em26.gif|||em27.gif|||em28.gif|||em29.gif|||em30.gif|||em31.gif|||em32.gif|||em33.gif|||em34.gif|||em35.gif|||em36.gif|||em37.gif|||em38.gif|||em39.gif|||em40.gif|||em41.gif|||em42.gif|||em43.gif|||em44.gif|||em45.gif|||em46.gif|||em47.gif|||em48.gif|||em49.gif|||';

var l=location.href.indexOf("start=");
var star=0;
if(l>0)
{
	star=location.href.substring(l+6,l+8);
}
var str=document.getElementById('SmileStar').value
var sBasePath = '' ;
aImages		  = aImages.split("|||");
var cols      = 8 ;
showmain(star)
function showmain(star){
star=Math.floor(star);
var ImgCount=aImages.length-2
var i = 24*star-24+1 ;
while (i <24*star)
{
	document.write("<TR>") ;
	for(var j = 0 ;j<cols; j++) 
	{
		if (aImages[i])
		{
			if (i<10)
			{ii='0'+i}
			else
			{ii=i}
			//document.write("<TD title=[em"+ii+"] class='Disactive' align=center onclick='insertChar(this)' onmouseover='over(this);' onmouseout='out(this)'>") ;
			document.write("<TD title=[em"+ii+"] class='Disactive' align=center onclick=\"insertsmilie('[em" + ii + "]')\" style=\"CURSOR: hand\" onmouseover='over(this);' onmouseout='out(this)'>") ;
			insertsmilie
			document.write("<img src='" + aImages[0] + aImages[i] + "' border='0'>") ;
		}
		else
			document.write("<TD width='10%' class='Empty'>&nbsp;") ;
		document.write("</TD>") ;
		i++ ;
	}
	document.write("</TR>") ;
}
if (ImgCount>24){
document.write("<TR>") ;
document.write("<TD height=20 colspan="+cols+">") ;
pagecount('red',24,ImgCount,star)
}

//分页
function pagecount(alertcolor,PageSize,TopicNum,star){
PageSize=Math.floor(PageSize);
TopicNum=Math.floor(TopicNum);
star=Math.floor(star);
var n,p;
if ((star-1)%10==0) 
{
	p=(star-1) /10
}
else
{
	p=(((star-1)-(star-1)%10)/10)
}
if(TopicNum%PageSize==0) 
{
	n=TopicNum/PageSize;
}
else
{
	n=(TopicNum-TopicNum%PageSize)/PageSize+1;
}
document.write ('<table border="0" cellpadding="0" cellspacing="3" width="100%" >');
document.write ('<tr><td valign="middle" width="50%">');
document.write ('总文件数: <b>'+TopicNum+' </b>&nbsp;&nbsp;分页：');
if (star==1)
{
	document.write ('<font face=webdings color="'+alertcolor+'">9</font>');
}
else
{
	document.write ('<a href="#" onclick=pageopen('+star+') title="首页"><font face=webdings>9</font></a> ');
}
if (p*10 > 0)
{
	document.write ('<a onclick=pageopen('+p*10+') href="#" title="上十页"><font face=webdings>7</font></a> ');
}
document.write ('<b>');
for (var i=p*10+1;i<p*10+11;i++)
{
	if (i==star)
	{
		document.write (' <font color="'+alertcolor+'">'+i+'</font> ');
	}
	else
	{
		document.write (' <a href="#" onclick=pageopen('+i+') >'+i+'</a> ');
	}
	if (i==n) break;
}
document.write ('</b>');
if (i<n)
{
	document.write ('<a onclick=pageopen('+i+') href="#" title="下十页"><font face=webdings>8</font></a>   ');
}
if (star==n)
{
	document.write ('<Font face=webdings color="'+alertcolor+'">:</font>');
}
else
{
	document.write (' <a onclick=pageopen('+n+') href="#" title="尾页"><font face=webdings>:</font></a>  ');
}
document.write ('</td></tr></table>');
}

document.write("</TD>") ;
document.write("</TR>") ;
}
//-->
</SCRIPT>

        <TBODY></TBODY></TABLE></TD>
    <TD vAlign=top align=middle width="10%">
      <TABLE class=MainTable cellSpacing=2 align=center>
        <TBODY>
        <TR>
          <TD class=Sample id=SampleTD align=middle width=80 height=80>&nbsp; 
          </TD></TR></TBODY></TABLE>
      <DIV id=code></DIV></TD></TR>
  <TR>
    <TD align=middle height=1><BUTTON 
  onclick=window.close();>关闭</BUTTON></TD></TR></TBODY></TABLE>
<SCRIPT language=javascript>
<!--
oSample = document.getElementById("SampleTD") ;
code = document.getElementById("code") ;
//-->
</SCRIPT>
</BODY>
</HTML>